package com.kylin.common.weixin.exception;

import com.kylin.common.core.beans.GlobalResultCode;
import com.kylin.common.core.exception.BaseException;

/**
 * 微信接口异常
 * @author wuhao
 * @version 1.0 - 2023/3/22
 */
public class WechatException extends BaseException {

    /**
     * 微信接口异常
     * @param errcode 微信错误码
     * @param errmsg  微信错误信息
     * @return
     * @author wuhao
     * @version 1.0.0 - 2023/3/22
     */
    public WechatException(int errcode, String errmsg) {
        super(GlobalResultCode.WEIXIN_EXCEPTION.getCode(),String.format("微信接口异常，错误码：%s,错误详情：%s", errcode, errmsg));
    }

}
